import QtQuick 2.2
import QtQuick.Window 2.1

Window {
    visible: true;
    width: 1200;
    height: 600;

    Rectangle {
        anchors.fill: parent;
        gradient: Gradient {
            GradientStop {
                position: 0.0;
                color: "lightskyblue";
            }
            GradientStop {
                position: 1.0;
                color: "skyblue";
            }
        }

        Rectangle {
            anchors.centerIn: parent;
            width: 400;
            height: 300;

            TextEdit {
                anchors.fill: parent;

                font.pixelSize: 40;

                wrapMode: TextEdit.Wrap;

                Component.onCompleted: {
                    console.log(this.font.pixelSize);
                }
            }
        }
    }
}
